#include <iostream>
#include "inputfilestream.h"
#include "objparser.h"
#include "tokenizer.h"
#include "space.h"
#include "eol.h"
#include "number.h"
#include "identifier.h"

int main(int argc, char** argv) {
    obj::tokenizer t("prueba");

    obj::tokens::space space;
    obj::tokens::eol eol;
    obj::tokens::number number;
    obj::tokens::identifier identifier("v");
    //t.addToken(space);
    t.addToken(eol);
    //t.addToken(number);
    t.addToken(identifier);

    std::string token;
    obj::TokenizerResult err;
    while ((err = t.next(token)) == obj::NO_ERROR) {
        std::cout << "-" << std::endl;
        std::cout << token << std::endl;
        std::cout << "-" << std::endl;
    }

    std::cout << "error" << err << std::endl;

    return 0;
}
